package cn.sciento.oauth.domain.repository;

import java.util.List;

import cn.sciento.mybatis.base.BaseRepository;
import cn.sciento.oauth.domain.entity.UserOpenAccount;

/**
 *

 */
public interface UserOpenAccountRepository extends BaseRepository<UserOpenAccount> {


    List<String> selectUsernameByOpenId(String openAppCode, String openId);

    List<String> selectUsernameByUnionId(String openAppCode, String unionId);

    List<UserOpenAccount> selectOpenAccountByUsername(String openAppCode, String username);

    UserOpenAccount selectOpenAccount(String openAppCode, String username);
}
